package com.shop.front.controller.store;

import com.shop.domain.store.StoreProduct;
import com.shop.front.service.store.StoreCategoryService;
import com.shop.front.vo.store.StoreCategoryVo;
import com.shop.web.response.BaseResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@Api(description = "商品分类", position = -1)
@RestController
@RequestMapping(value = "/storeCategory", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
@Slf4j
public class StoreCategoryController {

    @Autowired
    private StoreCategoryService storeCategoryService;


    @ApiOperation(value = "分类菜单")
    @ApiResponses(@ApiResponse(code = 10000, response = StoreCategoryVo.class, message = "content"))
    @RequestMapping("/menu")
    public BaseResponse menu() {
        return storeCategoryService.menu();
    }


}
